﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZR.Infrastructure.Model
{
    /// <summary>
    /// 实体自动填充字段
    /// </summary>
    public class EntityAutoFillFieldModel
    {
        /// <summary>
        /// 主键类型
        /// </summary>
        public PKTypeEnum PKType { get; set; }

        /// <summary>
        /// 创建时间字段
        /// </summary>
        public string CreateTimeField{ get; set; }

        /// <summary>
        /// 创建人字段
        /// </summary>
        public string CreaterField { get; set; }

        /// <summary>
        /// 创建人标识字段
        /// </summary>
        public string CreaterIdField { get; set; }

        /// <summary>
        /// 更新时间字段
        /// </summary>
        public string UpdateTimeField { get; set; }

        /// <summary>
        /// 更新人字段
        /// </summary>
        public string UpdaterField { get; set; }

        /// <summary>
        /// 更新人标识字段
        /// </summary>
        public string UpdaterIdField { get; set; }
    }

    /// <summary>
    /// 主键类型枚举
    /// </summary>
    public enum PKTypeEnum
    {
        /// <summary>
        /// 自增ID
        /// </summary>
        IdentityId=1,
        /// <summary>
        /// 雪花ID
        /// </summary>
        SnowId=2,
        /// <summary>
        /// GUID
        /// </summary>
        Guid=3

    }
}
